@extends('web.master')
@section('title','提现')
    @section('head')
        <link rel="stylesheet" href="{{asset('statics/css/index.css')}}" />
        @endsection
    @section('content')
        <!--提成记录-->
        <form action="{{route('user_withdrawals_store')}}" method="post">
            {{csrf_field()}}
        <div class="commission">
            <div class="input list">

                <label>持卡者<input type="text" name="username" value="{{cache('username'.Auth::guard('member')->id())}}" placeholder="请输入姓名"/></label>
                {{--<label>卡号--}}<input  name="bank_id" placeholder="请输入您的银行卡号" type="hidden" value="{{cache('bank_id'.Auth::guard('member')->id())}}" type="tel"/>{{--</label>--}}
            </div>
            <div class="input">
                <p>账户余额（元）</p>
                <label>￥<input type="number" name="price" value="0"/></label>
                <p>提现不足100元，将会收取5元手续费</p>
            </div>
            <div class="input">
                <p class="ye">
                    可提现余额 <span> ¥{{Auth::guard('member')->user()->wallet_push_money}}</span>
                    <a href="{{route('user_presentRecord')}}">提现记录</a>
                </p>
                <button type="submit" class="aBtn" style="margin-top: 40px;margin-bottom: 30px;">确认提现</button>
            </div>
        </div>
        </form>
        @endsection
@section('foot')
    <script>
    @if (count($errors) > 0)
        @foreach ($errors->all() as $error)
            alert('{{$error}}');
        @endforeach
    @endif
    </script>
    @endsection